package com.example.wechatlistview.pages;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;

import com.example.wechatlistview.R;

public class pg_viewer extends AppCompatActivity {

    ImageView imageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_pg_viewer);
        imageView = (ImageView) findViewById(R.id.viewer_image);

        Intent intent = getIntent();
        Bundle bundle = intent.getExtras();

        imageView.setImageResource(bundle.getInt("imgRes"));

    }
}